
  const initialState = {
   homeData:{},
   flag:true
  }
  export default (state = initialState, action) => {
    switch (action.type) {
      case "FETCH_HOME_SUCCESS":
      return Object.assign({}, state,{homeData:action.response.data})
      case 'HOME_FLAG':
      return Object.assign({}, state,{flag:action.flag})
      default:
      return state
    }
  }